<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib tagdir="/WEB-INF/tags/common" prefix="common"%>
<html>
<head>
<jsp:include page="/common/meta.jsp"></jsp:include>
<link rel="stylesheet" type="text/css" media="all"
href="${ctx}/common/jscalendar-1.0/skins/aqua/theme.css" title="Aqua" />
<link rel="alternate stylesheet" type="text/css" media="all"
href="${ctx}/common/jscalendar-1.0/calendar-win2k-1.css"
title="win2k-1" />
<script type="text/javascript"
src="${ctx}/common/jscalendar-1.0/calendar.js"></script>
<script type="text/javascript"
src="${ctx}/common/jscalendar-1.0/lang/calendar-zh_CN.js"></script>
<script type="text/javascript"
src="${ctx}/common/jscalendar-1.0/calendar-setup.js"></script>
<title></title>
   <script type="text/javascript">
   function checkField(){
	   
   }
   function backTo(){
		window.location="${ctx}/app/main/viewfun?cpaid=${funDTO.cpaID}&verid=${funDTO.verId}&userid=${user.id}&restore=true"
	}
        </script>
</head>
<body>
<fieldset class="mainbody" >
<form:form id="addFunForm" name="addFunForm" commandName="funDTO" action="${ctx }/app/main/addfun" onsubmit="checkField()" enctype="multipart/form-data">
<common:errorTable commandName="funDTO"></common:errorTable>
<table width="100%">
<tr>
<td colspan="2">
<h3>
<c:if test="${isEdit eq 'Y' }">
	添加新的模块
</c:if >
<c:if test="${isEdit eq 'E' }">
	编辑模块
</c:if >
<c:if test="${isEdit eq 'N' }">
	查看模块
</c:if >
</h3>
</td>

</tr>
 
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td width="10%">模块名称：</td>
<td width="40%">
<form:hidden path="cpaID" /> 
<form:hidden path="verId" /> 
<form:input path="funName"/>
<common:errorSign path="funName"></common:errorSign>
</td>
<td width="10%">级别：</td>
	<td width="20%">
		<form:select path="level"  >
	        <form:option value="1">1</form:option>   
	        <form:option value="2">2</form:option>   
	        <form:option value="3">3</form:option>
	        <form:option value="4">4</form:option>
	        <form:option value="5">5</form:option>    
		</form:select>
	</td>

</tr>
<tr>
<td>预计完成日期：</td>
<td>
<common:inputDate date="planEndDateStr"></common:inputDate>
<common:errorSign path="planEndDateStr"></common:errorSign>
</td>

</tr>
<tr>
	<form:hidden path="filePath"/>
	<td width="10%">文件路径：</td>
	<td width="40%"><input type="file" id="upFile" name="upFile" /></td>
</tr>
<tr>
<td width="10%">模块描述：</td>
<td width="40%">
<form:textarea path="funDesc"  cols="30" rows="5"/>
<common:errorSign path="funDesc"></common:errorSign>
</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2">
<c:if test="${isEdit eq 'Y' }">
<input type="submit" value="确定" />&nbsp;&nbsp;
<input type="button" onclick="backTo();" value="返回上一层"/>
</c:if >
<c:if test="${isEdit eq 'E' }">
<input type="submit" value="确定" />&nbsp;&nbsp;
<input type="button" onclick="backTo();" value="返回上一层"/>
</c:if >
</td>
</tr>
</table>
</form:form>
</fieldset>
</body>
</html>